#ifndef _THREAD_POOL_H__
#define _THREAD_POOL_H__

typedef struct threadpool ThreadPool;

/* 线程池初始化 */
int threadPoolInit(ThreadPool ** pool, int threadMinThread, int threadMaxThreads, int queueCapacity);


/* 添加任务 */
int threadPoolAdd(ThreadPool * pool, void * (*func)(void * arg), void * arg);


/* 线程池的销毁 */
int threadPoolDestroy(ThreadPool * pool);


#endif //_THREAD_POOL_H__